﻿using System;

using MBA.FluentExt;
using MBA.FluentExt.Ext;

namespace TestConsole
{
	class Program
	{
		#region Methods

		static void Main(string[] args)
		{
			var c = new BoxComponent();

			c.Id("Something")
				.Listeners
				(
					Listener.On(Component.Show, Raw.Function("alert")),
					Listener.On(Component.Enable, Raw.Function("onEnable"))
				)
				.Width(300)
				.ToAdvanced()
				.BoxMaxHeight(100)
				.ToBasic()
				.Anchor(AnchorUnit.Auto)
				.ToAdvanced()
				.AllowDomMove(false);

			Console.WriteLine(c.ToJavascriptVar());
		}

		#endregion Methods
	}
}